{if $smarty.session.login_main_account_info}
<div id="header-login">
    <div class="top-header">
        <a class="logo" href="{dev_get_page_link page=PAGE_DEFAULT ssl=true}"><img src="images/logo.png"/></a>
        <ul class="top-nav">
            <li>
                Welcome <strong>{$smarty.session.login_main_account_info.firstname}&nbsp;{$smarty.session.login_main_account_info.lastname}</strong>
            </li>
            <li>
                <a href="{dev_get_page_link page=PAGE_ACCOUNT ssl=true}" style="text-transform: none"><strong>{$smarty.session.login_account_number} </strong>({$smarty.session.login_main_account_info.account_name})</a> 
            </li>
            <li><a href="{dev_get_page_link page=PAGE_LOGOUT ssl=true}">Logout</a> </li>
        </ul>
    </div>
    <div class="clear"></div>
    <div class="nav">
        <div class="nav-content">
            <ul>
                <li>
                    <a href="{dev_get_page_link page=PAGE_DEFAULT ssl=true}" {if ($smarty.get.page == 'index') && empty($smarty.get.module)} class="active" {/if}>Home</a>
                </li>
                <li>
                    {if $CURRENT_MODULE == 'account' AND $CURRENT_PAGE == 'account' }
                    <a class="active" href="{dev_get_page_link page=PAGE_ACCOUNT ssl=true}" >
                        Account
                    </a>
                    {else}
                    <a href="{dev_get_page_link page=PAGE_ACCOUNT ssl=true}" >
                        Account
                    </a>
                    {/if}
                </li>
                <li>
                    {if $CURRENT_MODULE == 'account' AND $CURRENT_PAGE == 'personal' }
                    <a class="active" href="{dev_get_page_link page=PAGE_ACCOUNT_PERSONAL ssl=true}" >
                        Profile
                    </a>
                    {else}
                    <a href="{dev_get_page_link page=PAGE_ACCOUNT_PERSONAL ssl=true}" >
                        Profile
                    </a>
                    {/if}
                </li>
                <li>
                    {if $CURRENT_MODULE == 'account' AND $CURRENT_PAGE == 'history' }
                    <a class="active" href="{dev_get_page_link page=PAGE_ACCOUNT_TRANSACTIONS ssl=true}" >
                        History
                    </a>
                    {else}
                    <a href="{dev_get_page_link page=PAGE_ACCOUNT_TRANSACTIONS ssl=true}" >
                        History
                    </a>
                    {/if}
                </li>
                <li>
                    {if $CURRENT_MODULE == 'account' AND $CURRENT_PAGE == 'transfer' }
                    <a class="active" href="{dev_get_page_link page=PAGE_ACCOUNT_TRANSFER ssl=true}" >
                        Transfer
                    </a>
                    {else}
                    <a href="{dev_get_page_link page=PAGE_ACCOUNT_TRANSFER ssl=true}" >
                        Transfer
                    </a>
                    {/if}
                </li>

            </ul>
            <div class="search">
                <form method="GET" action="">
                    <span>Search</span>
                    <input type="text" name="search" class="search-inut"/>
                    <input type="submit" value="Go" class="btn-search"/>
                </form>
            </div>
            <div class="clear"></div>
        </div>
    </div>
</div>

{else}
{if empty($smarty.get.page) || (($smarty.get.page == 'index') && empty($smarty.get.module))}
<div id="header">
    <div class="top-header">
        <a href="{dev_get_page_link page=PAGE_DEFAULT ssl=true}" class="logo"><img src="images/logo.png"/></a>
        <ul class="top-nav">
            <li>
                <a href="{dev_get_page_link page=PAGE_DEFAULT ssl=true}">Home</a>
            </li>
            <li>
                <a href="{dev_get_page_link page=PAGE_SIGNUP ssl=true}">Create Account</a>
            </li>
            <li>
                <a href="{dev_get_page_link page=PAGE_LOGIN ssl=true}">Log in</a>
            </li>
        </ul>
    </div>
    <div class="nav">
        <div class="nav-content">
            <ul>
                <li><a href="{dev_get_page_link page=PAGE_DEFAULT ssl=true}" {if ($smarty.get.page == 'index') && empty($smarty.get.module)} class="active" {/if}>Home</a></li>

                <li><a href="http://docs.ookcash.com/category/exchangers/">Exchangers</a></li>
                <li><a href="http://docs.ookcash.com/products">Products</a></li>
                <li><a href="http://docs.ookcash.com">Help</a></li>
            </ul>
            <div class="search">
                <form method="GET" action="http://docs.ookcash.com">
                    <span>Search</span>
                    <input type="text" name="s" class="search-inut"/>
                    <input type="submit" value="Go" class="btn-search"/>
                </form>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="banner">
        <div class="content-banner">
            <div class="left-banner">
                <h1>{$post_info.title}</h1>
                {$post_info.content}
                <a href="{dev_get_page_link page=PAGE_SIGNUP ssl=true}" class="button-create-acount">Create free account</a>
            </div>
            <div class="right-banner">
                <form action="{dev_get_page_link page=PAGE_LOGIN ssl=true}" method="post" > 
                    <div class="heading blue">
                        Member login
                    </div>
                    <div class="login-form-header">
                        <input type="hidden" value="process" name="action">
                        <input type="text" name="account_number" id="account_number" autocomplete="off" placeholder="Acount number" class="input-login"/>
                        <input type="password" name="password" size="20" autocomplete="off" placeholder="Password" class="input-login"/>
                        <a class="forgot" href="{dev_get_page_link page=PAGE_RESET_PASSWORD ssl=true}">Forgot password?</a>
                        <input type="submit" class="btn-login" value="Login"/>
                    </div>
                </form>
            </div>
            <div class="clear"></div>
        </div>
    </div>
</div>
{else}
<div id="header-login">
    <div class="top-header">
        <a href="{dev_get_page_link page=PAGE_DEFAULT ssl=true}" class="logo"><img src="images/logo.png"/></a>
        <ul class="top-nav">
            <li>
                <a href="{dev_get_page_link page=PAGE_DEFAULT ssl=true}">Home</a>
            </li>
            <li>
                <a href="{dev_get_page_link page=PAGE_SIGNUP ssl=true}">Create Account</a>
            </li>
            <li>
                <a href="{dev_get_page_link page=PAGE_LOGIN ssl=true}">Log in</a>
            </li>
        </ul>
    </div>
    <div class="nav">
        <div class="nav-content">
            <ul>
                <li><a href="{dev_get_page_link page=PAGE_DEFAULT ssl=true}" {if ($smarty.get.page == 'index') && empty($smarty.get.module)} class="active" {/if}>Home</a></li>

                <li><a href="http://docs.ookcash.com/category/exchangers/">Exchangers</a></li>
                <li><a href="http://docs.ookcash.com/products">Products</a></li>
                <li><a href="http://docs.ookcash.com">Help</a></li>
            </ul>
            <div class="search">
                <form method="GET" action="http://docs.ookcash.com">
                    <span>Search</span>
                    <input type="text" name="s" class="search-inut"/>
                    <input type="submit" value="Go" class="btn-search"/>
                </form>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    
</div>
{/if}
{/if}


